home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
028.dms
/
028.adf
/
Features_of_the_Shell
/
Command_Line_Characters
next >
Wrap
Text File
|
1992-02-26
|
3KB
|
62 lines
Command Line Characters
These are specially recognised Shell characters. You should not include
these in filenames or problems could arise.
Colon (:)
This means that the filename is a device. A device can refer
to a physical device, like Df0: (the internal disk drive) or
an "Assigned" device, like C: (the boot disk's C drawer).
Please read the description of the command Assign for more
information.
Slash (/)
The slash has two uses. First, it is the directory
separator. When you specify a directory like SYS:Example
there is no need for a separator (because of the colon).
But a specification like SYS:Example/Example2 means a
directory within Example called Example2. If you forget
to put in a separator the computer will be fooled. Two
common errors are like these
Df0:ExampleExample2
which means the drawer called ExampleExample2 on the disk in
drive Df0:. and
Df0:Example Example2
This one means a file called Example2 in the drawer Example.
The second use is with the CD command. Typing CD / moves
up one level in the directory structure. Another way to
think of it is moving back one step towards the root
directory. If your current directory is
Df0:Example/Example2
typing CD / will move you out of the current directory,
towards the root directory (Df0:). Your current directory
is now
Df0:Example
Semicolon (;)
The semicolon is the AmigaDOS equivalent to BASIC's Rem
statement. It is also similar to enclosing a line in C or
AREXX with the characters /* and */. It lets you add a
comment to something. The only real use for this is in a
script file.
Asterisk(*)
(NOT called an asterix as some people think). This refers
to the current CLI window. Echo-ing a line to * will print
it in the current window.
Back Apostrophe
This executes CLI commands from within a string. Not to be
(`)
confused with the ' apostrophe. When the line is printed,
the command after the back apostrophe is executed. The
command must be enclosed in back quotes.